package cn.edu.ctbu.jpatest.enums;

import lombok.Getter;

/**
 * @author xiaopeng
 * @version 1.0
 */
@Getter
public enum ResultEnum {
    SUCCESS(200,"成功"),
    COMMON_ERROR(1,"通用错误"),
    SERVER_ERROR(500,"服务器失败"),

    LOGIN_ERROR(2,"请输入正确的用户名和密码！"),

    UNKNOWN_ERROR(-999,"未知错误"),

    ;




    private Integer code;
    private String msg;
    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
